import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router'
import i18n from './i18n'
import store from './store'
import './utils/antConfig'
import 'ant-design-vue/es/message/style/css'
import 'ant-design-vue/es/modal/style/css'

const app = createApp(App)

// 使用路由
app.use(router)

// 使用数据管理pinia
app.use(store)

// 使用国际化
app.use(i18n)

// 路由准备就绪后挂载APP实例
router.isReady().then(() => {
  app.mount('#app')
})
